#!/system/bin/sh

case ${1} in
	ro)
		mount -o remount,ro -t yaffs2 mtd@system /system
		;;
	rw)
		mount -o remount,rw -t yaffs2 mtd@system /system
		;;
	*)
		echo "Usage: $(basename ${0}) [rw | ro]"
		;;
esac
